package com.mashibing.abstractfactory;

import com.mashibing.factorymethod.CarFactory;
import com.mashibing.factorymethod.Moveable;

public class Main {
    public static void main(String[] args) {
        //Car c = new Car();
        //c.go();
        //AK47 w = new AK47();
        //w.shoot();
        //Bread b =new Bread();
        //b.printName();

        AbstractFactory f = new ModernFactory();
        Vehicle vehicle = f.createVehicle();
        vehicle.go();
        Weapon weapon = f.createWeapon();
        weapon.shoot();
        Food food = f.createFood();
        food.printName();
    }
}
